/* MarkLetter Read/Unread and/or In Trash/Out of Trash. */
struct MBMarkLetterPB {
void * qLink;
SInt32 reservedH1;
SInt32 reservedH2;
MSAMIOCompletionUPP ioCompletion;
OSErr ioResult;
SInt32 saveA5;
SInt16 reqCode;
MBOpenContainerRef containerRef; /* --> container in which letter resides */
MailSeqNum seqNum; /* --> mail sequence number of the letter */
MBLetterReadStatus readMark; /* --> must be kMBLetterRead, kMBLetterUnread or kMBLeaveReadMark */
MBLetterTrashStatus trashMark; /* --> must be kMBLetterNotInTrash, kMBLetterInTrash or kMBLeaveTrashMark */
};
typedef struct MBMarkLetterPB MBMarkLetterPB;
/* Stores the MailItem locally. */
struct MBCopyLocalPB {
void * qLink;
SInt32 reservedH1;
SInt32 reservedH2;
MSAMIOCompletionUPP ioCompletion;
OSErr ioResult;
SInt32 saveA5;
SInt16 reqCode;
MBOpenContainerRef containerRef; /* --> container in which letter resides */
MailSeqNum seqNum; /* --> mail sequence number of the desired letter */
MBProgressIndicator progressIndicator; /* --> created using MBCreateProgressIndicatoror kOCENoProgressIndicator if client does not desire progress indication. */
MBCopyOperationRef copyOperationRef; /* <-- ref to this copy operation for use in cancel */
MailSeqNum newSeqNum; /* <-- seqNum of new letter after successful operation */
};
typedef struct MBCopyLocalPB MBCopyLocalPB;
struct MBCopyToFilePB {
void * qLink;
SInt32 reservedH1;
SInt32 reservedH2;
MSAMIOCompletionUPP ioCompletion;
OSErr ioResult;
SInt32 saveA5;
SInt16 reqCode;
MBOpenContainerRef containerRef; /* --> container in which letter resides */
MailSeqNum seqNum; /* --> mail sequence number of the desired letter */
FSSpecPtr specPtr; /* --> spec of file which will contain the local copy */
MBProgressIndicator progressIndicator; /* --> created using MBCreateProgressIndicator or kOCENoProgressIndicator if client does not desire progress indication. */
MBCopyOperationRef copyOperationRef; /* <-- ref to this copy operation for use in cancel */
};
typedef struct MBCopyToFilePB MBCopyToFilePB;
/* Cancels the copy operation, if possible. */
struct MBCancelCopyPB {
void * qLink;
SInt32 reservedH1;
SInt32 reservedH2;
MSAMIOCompletionUPP ioCompletion;
OSErr ioResult;
SInt32 saveA5;
SInt16 reqCode;
MBCopyOperationRef copyOperationRef; /* --> reference to copyLocal or copyToFile operation to cancel */
};
typedef struct MBCancelCopyPB MBCancelCopyPB;
/* An irrevocable delete of an item from a container. */
struct MBDeleteLetterPB {
void * qLink;
SInt32 reservedH1;
SInt32 reservedH2;
MSAMIOCompletionUPP ioCompletion;
OSErr ioResult;
SInt32 saveA5;
SInt16 reqCode;
MBOpenContainerRef containerRef; /* --> container in which letter resides */
MailSeqNum seqNum; /* --> mail sequence number of the letter to delete */
};
typedef struct MBDeleteLetterPB MBDeleteLetterPB;
/* Forces a MailItem to be sent right now. This operation only works on MailItems in the outbox.*/
struct MBSendNowPB {
void * qLink;
SInt32 reservedH1;
SInt32 reservedH2;
MSAMIOCompletionUPP ioCompletion;
OSErr ioResult;
SInt32 saveA5;
SInt16 reqCode;
MBOpenContainerRef containerRef; /* --> ref of the outbox container in which letter resides */
MailSeqNum seqNum; /* --> mail sequence number of the letter to send */
Duration timeOut; /* --> time in seconds to wait for a response from server */